//
//  CFBindCardVC.m
//  CFfuturestalent
//
//  Created by chunfeng on 2018/5/4.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "CFBindCardVC.h"
#import "RegularValidateUtils.h"
@interface CFBindCardVC ()

@end

@implementation CFBindCardVC

- (void)viewDidLoad {
    [super viewDidLoad];
//    
    [self.cardNumber setValue:[UIColor colorWithHexString:@"687278"] forKeyPath:@"_placeholderLabel.textColor"];
    [self.cardType setValue:[UIColor colorWithHexString:@"687278"] forKeyPath:@"_placeholderLabel.textColor"];
    [self.cardAccount setValue:[UIColor colorWithHexString:@"687278"] forKeyPath:@"_placeholderLabel.textColor"];
//
    // Do any additional setup after loading the view.
    
//    [[self.tfCode rac_textSignal] subscribeNext:^(NSString * _Nullable x) {
//        if (x.length>=6) {
//            self.tfCode.text = [self.tfCode.text substringToIndex:6];
//            [self.btnNext setEnabled:YES];
//            self.btnNext.backgroundColor = DEF_COLOR_BTNNORCOLOR;
//        }else{
//            [self.btnNext setEnabled:NO];
//            self.btnNext.backgroundColor = DEF_COLOR_BTNDELCOLOR;
//        }
//    }];

//
    
    
    
    
}



- (IBAction)next:(id)sender {
    
    // 判断身份证号
    if(![RegularValidateUtils validateIdentityCard:self.cardNumber.text ]){
        NSLog(@"不是正确的身份证号");
        return;
    }
    NSLog(@"可以进行下一步了");
    
}






- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}






/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
